package com.boco.fznq;

import android.app.Application;
import android.content.Context;

import com.boco.fznq.network.OkHttpClientFactory;
import com.culiu.core.imageloader.CuliuImageLoader;
import com.mob.MobSDK;
import com.zhy.http.okhttp.OkHttpUtils;

/**
 * Created by jiangcheng on 2016/12/10.
 */

public class BOCOApplication extends Application{


    private static Context mContext;

    public static Context getContext() {
        return mContext;
    }


    @Override
    public void onCreate() {
        super.onCreate();
        mContext = getApplicationContext();

        MobSDK.init(this, AppConstants.MOB_APPKEY, AppConstants.MOB_APPSECRET);

        // 初始化网络框架和图片加载框架
        CuliuImageLoader.getInstance().init(this);
        OkHttpUtils.initClient(OkHttpClientFactory.create().getOkHttpClient());
    }


}
